//
//  BooksCellPresenter.m
//  iOSCodeLearning
//
//  Created by TFAppleWork-Summer on 2018/1/13.
//  Copyright © 2018年 Ace. All rights reserved.
//

#import "BooksCellPresenter.h"

@interface BooksCellPresenter()

@property (nonatomic, strong) CrowdModel *model;

@end

@implementation BooksCellPresenter

- (instancetype)initWithModel:(CrowdModel *)model
{
    if (self = [super init]) {
        self.model = model;
    }
    return self;
}

- (CGFloat)cellHeight{
    return 200;
}


-(void)presenterWithView:(id<BookCellProtocol>)view{
    if ([view respondsToSelector:@selector(updateBookName:)]) {
        [view updateBookName:self.model.bookObj.title];
    }
}

@end
